import request from '/@/utils/request';

// 查询秒杀列列表
export function listKill(query?: Object) {
  return request({
    url: '/module/second/kill/list',
    method: 'get',
    params: query
  })
}

// 查询秒杀列详细
export function getKill(id?: number) {
  return request({
    url: '/module/second/kill/' + id,
    method: 'get'
  })
}

// 新增秒杀列
export function addKill(data?: Object) {
  return request({
    url: '/module/second/kill',
    method: 'post',
    data
  })
}

// 修改秒杀列
export function updateKill(data?: Object) {
  return request({
    url: '/module/second/kill',
    method: 'put',
    data
  })
}

// 删除秒杀列
export function delKill(id?: number) {
  return request({
    url: '/module/second/kill/' + id,
    method: 'delete'
  })
}

// 导出秒杀列
export function exportKill(query?: Object) {
  return request({
    url: '/module/second/kill/export',
    method: 'get',
    params: query
  })
}
